/*
 * @Date: 2023-03-14 14:30:40
 * @LastEditTime: 2023-09-12 17:38:52
 * @FilePath: /wkw/src/router/module/tabbar.ts
 * 介绍:tabbar导航页
 */
import type { Router } from "../interface";
import { t } from "@@/hooks/useI18n";
import { _require } from "@@/utils/tools";
import home from "@@/views-tabbar/home/index.vue";
import swap from "@@/views-tabbar/swap/index.vue";
import wk from "@@/views-tabbar/wk/index.vue";
import me from "@@/views-tabbar/me/index.vue";
import { navbar } from "@@/enum/pubsub";

const routes: Array<Router.Item> = [
  {
    name: "home",
    path: "/",
    component: home,
    meta: {
      title: "WKC",
      navbar: {
        props: { bg: "none" },
      },
      tabbar: {
        icon: "icon-zhuye",
        activeIcon: "icon-zhuye",
        title: t("show-ye"),
      },
    },
  },
  {
    name: "swap",
    path: "/swap",
    component: swap,
    meta: {
      title: t("dui-huan"),
      tabbar: {
        icon: "icon-jiaoyi",
        activeIcon: "icon-jiaoyi",
        title: t("jiao-yi"),
      },
    },
  },
  {
    name: "wk",
    path: "/wk",
    component: wk,
    meta: {
      title: t("ren-wu-da-ting"),
      tabbar: {
        icon: "icon-wk",
        activeIcon: "icon-wk",
        title: t("wei-ke"),
      },
      navbar: {
        buttons: [
          {
            icon: "icon-xialacaidan",
            pubSubKey: navbar.wkMenu,
          },
        ],
      },
    },
  },
  {
    name: "me",
    path: "/me",
    component: me,
    meta: {
      title: t("wo-de"),

      tabbar: {
        icon: "icon-wode",
        activeIcon: "icon-wode",
      },
    },
  },
];
export default routes;
